From 3eae91255d2ed9a856ac8ddfa82e68b737b7f1f9 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 15 Oct 2020 21:28:11 -0400 Subject: [PATCH] atspi: Fix a thinko in action filtering get_action_at_index() was trying hard to find out which actions are valid, only to then return the invalid ones anyway. --- gtk/a11y/gtkatspiaction.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/a11y/gtkatspiaction.c b/gtk/a11y/gtkatspiaction.c index c33361e7cc..bcb74d594a 100644 --- a/gtk/a11y/gtkatspiaction.c +++ b/gtk/a11y/gtkatspiaction.c @@ -639,12 +639,12 @@ get_action_at_index (GtkActionMuxer *muxer, continue; if (real_pos == pos) - break; + return actions[i]; real_pos += 1; } - return actions[real_pos]; + return NULL; } static int -- 2.30.2